home *** CD-ROM | disk | FTP | other *** search
-
- /***********************************************\
- * *
- * compiler.h *
- * Compiler dependent defines *
- * *
- * J.R. Bammi *
- * decvax!cwruecmp!bammi *
- * bammi@cwru.edu.ARPA *
- * bammi@cwru.edu.CSNET *
- * CIS: 71515,155 *
- * *
- \***********************************************/
-
- /*
- * Assumptions:
- * Type 'long' == 32 bit integer
- * Type 'char' == 8 bit integer
- *
- * Compiler Dependant defines:
- * Type 'WORD' == 16 bit signed int
- * Type 'UWORD' == 16 bit unsigned int
- * Type 'VOID' == nothing
- */
-
- /*
- * Define one of the following
- */
- /* #define ALCYON */
- /* #define MEGAMAX */
- /* #define LATTICE */
- /* #define MWC */
-
-
- /************************** The rest 'should' be ok **************************/
-
-
- /*
- * Alcyon C
- */
- #ifdef ALCYON
-
- typedef int WORD;
- typedef unsigned int UWORD;
- #define VOID void /* can't typedef void in alcyon (bug) */
-
- #endif /* ALCYON */
-
-
- /*
- * Megamax C
- */
- #ifdef MEGAMAX
-
- typedef int WORD;
- typedef unsigned UWORD; /* Check this */
- typedef int VOID; /* yech !! */
-
- #endif /* MEGAMAX */
-
- /*
- * Lattice C
- * I don't have a copy so ......
- */
- #ifdef LATTICE
-
- typedef short WORD;
- typedef unsigned short UWORD; /* Is'nt lattice braindamaged like Megamax,
- * in that it defines unsigned as a type
- * instead of a type modifier ?? if so
- * unsigned short is incorrect, and i
- * don't know what it should be!
- */
- typedef void VOID; /* what should this be ?? */
-
- #endif /* LATTICE */
-
- /*
- * Mark Williams C
- */
- #ifdef MWC
-
- typedef int WORD;
- typedef unsigned int UWORD;
- typedef void VOID;
-
- #endif /* MWC */
-